home *** CD-ROM | disk | FTP | other *** search
/ SuperHack / SuperHack CD.bin / SCRIPTZ / LEECH2.ZIP / LEECH.EXE / ALIAZES.INI < prev    next >
INI File  |  1997-01-11  |  12KB  |  171 lines

  1. [Aliases]
  2. n0=d_gon { if ($readini %gamefile game type != off) { return 1 } | halt }
  3. n1=d_gc { set %addy ! $+ $remove($address,~) | set %site $mask(%addy,3) | unset %addy | return 1 }
  4. n2=d_ig { set %addy ! $+ $remove($address,~) | set %site $mask(%addy,3) | unset %addy | if ($readini %gamefile sites %site != $null) { return 1 } | else { Notice $nick Sorry, your not in this round... | halt } }
  5. n3=d_is { if ($nick = $readini %gamefile pr $+ %turn nick) { unset %site | return 1 } | else { notice $nick Wait for your turn... | unset %site | halt } }
  6. n4=d_isbj { if ($readini %gamefile game type = Blackjack) { return 1 } | else { halt } }
  7. n5=/bj5 { msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick You have 5 Cards and are ranked at $readini %gamefile pr $+ %turn total | writeini %gamefile pr $+ %turn total fivecard | nextplayer }
  8. n6=/hitme {
  9. n7=  %cpos = $readini %gamefile deck cpos | inc %cpos 1 | writeini %gamefile deck cpos %cpos | %cleft = $readini %gamefile deck cleft | dec %cleft 1 | writeini %gamefile deck cleft %cleft | %pick = $asc($mid(%cpos,1,%deck)) - 38 | getface %pick | %hand = $readini %gamefile pr $+ %turn vhand | %hand = %hand %pick | %rank = $readini %gamefile pr $+ %turn nhand | %rank = %rank %pickr $+ x
  10. n8=  rank %rank 
  11. n9=  writeini %gamefile pr $+ %turn total %value 
  12. n10=  writeini %gamefile pr $+ %turn vhand %hand 
  13. n11=  writeini %gamefile pr $+ %turn nhand %rank 
  14. n12=  msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick ╗ hand is $readini %gamefile pr $+ %turn vhand ranked at $readini %gamefile pr $+ %turn total
  15. n13=  if ($readini %gamefile pr $+ %turn total > 21) { 
  16. n14=    if (%turn = 1) { goto dealer } 
  17. n15=    msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick, you have busted! | writeini %gamefile pr $+ %turn total Busted | goto nextplayer 
  18. n16=  } 
  19. n17=  if ($readini %gamefile pr $+ %turn total = 21) { 
  20. n18=    if (%turn = 1) { goto dealer } 
  21. n19=    msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick, you have 21 
  22. n20=    if (%noc >= 5) { bj5 }  | goto nextplayer 
  23. n21=  }
  24. n22=  if ($readini %gamefile pr $+ %turn total <= 20) { 
  25. n23=    if (%turn = 1) { goto fbj } 
  26. n24=    if (%noc >= 5) { bj5 | goto nextplayer } 
  27. n25=    msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick ╗ hitme or stand?
  28. n26=  }
  29. n27=  :end | unset %rank %pick* %suit %hand %cleft %i %cpos %card* %value %noc %nop | halt
  30. n28=  :nextplayer | unset %rank %pick* %suit %hand %cleft %i %cpos %card* %value %noc %nop | nextplayer
  31. n29=  :dealer | unset %rank %pick* %suit %hand %cleft %i %cpos %card* %value %noc %nop | d_credit
  32. n30=  :fbj | unset %rank %pick* %suit %hand %cleft %i %cpos %card* %value %noc %nop | fbj
  33. n31=}
  34. n32=/nextplayer { :next | inc %turn 1 | if (%turn > $readini %gamefile game nop) { fbj } | if ($readini %gamefile pr $+ %turn blackjack != $null) { msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick, I am skipping you, you have Blackjack | goto next } | msg $readini %gamefile game channel $readini %gamefile pr $+ %turn nick your options are hitme, stand, myhand, dealer | halt }
  35. n33=/takebets { writeini %gamefile game players $me | writeini %gamefile game nop 1 | writeini %gamefile pr1 nick Dealer | writeini %gamefile game type BlackJack | writeini %gamefile game channel $chan | notice $chan Blackjack table has just opened, type !join to play | .timer2000 1 30 /set %nojoin 0 | .timer2002 1 30 dbj | .timer2001 1 15 notice $chan You have 15 seconds to !join }
  36. n34=/shuffle {
  37. n35=  %ti = $ctime | %deck = $readini %gamefile deck deck | writeini %gamefile deck cpos 0 | writeini %gamefile deck cleft 52 | %ctr = 0 | %tc = $chr(128)
  38. n36=  :swap | %c1 = $chr($r(39,90)) | %c2 = $chr($r(39,90)) | if (%c1 = %c2) { goto swap } | inc %ctr 1 | %deck = $replace(%deck,%c1,%tc) | %deck = $replace(%deck,%c2,%c1) | %deck = $replace(%deck,%tc,%c2) | if (%ctr < 30) { goto swap } | writeini %gamefile deck deck %deck | %to = $ctime - %ti
  39. n37=  if (%to <= 0) { echo 4 # *** Deck shuffled... took less than a second } | else { echo 4 # *** Deck shuffled... took %to seconds } 
  40. n38=  unset %ctr %c1 %c2 %tc %deck %ti %to
  41. n39=  return 1
  42. n40=}
  43. n41=getface { if (%pick <= 13)  { %suit = H } | if ((%pick > 13) && (%pick < 27)) { %suit = D | dec %pick 13  } | if ((%pick > 26) && (%pick < 40)) { %suit = C | dec %pick 26 } | if ((%pick > 39) && (%pick <= 52)) { %suit = S | dec %pick 39 } | if (%pick = 1) { %pick = A | %pickr = 11 } | if (%pick = 11) { %pick = J | %pickr = 10 } | if (%pick = 12) { %pick = Q | %pickr = 10 } | if (%pick = 13) { %pick = K | %pickr = 10 } | if (%pickr = $null) { %pickr = %pick } | set %pick [ %pick $+ [ %suit ] ] | return 1 }
  44. n42=rank  {
  45. n43=  %noc = $gettok(%rank,0,32) 
  46. n44=  %c1 = $remove($1,x) | %c2 = $remove($2,x) | %c3 = $remove($3,x) 
  47. n45=  %c4 = $remove($4,x) | %c5 = $remove($5,x) | %c6 = $remove($6,x)
  48. n46=  %cards = 0 | goto %noc 
  49. n47=  :1 | %value = %c1 | goto end
  50. n48=  :2 | %value = %c1 + %c2 | goto end
  51. n49=  :3 | %value = %c1 + %c2 | %value = %value + %c3 | goto end
  52. n50=  :4 | %value = %c1 + %c2 | %value = %value + %c3 | %value = %value + %c4 | goto end
  53. n51=  :5 | %value = %c1 + %c2 | %value = %value + %c3 | %value = %value + %c4 | %value = %value + %c5 | goto end
  54. n52=  :6 | %value = %c1 + %c2 | %value = %value + %c3 | %value = %value + %c4 | %value = [ %value + %c5 ] | %value = %value + %c6
  55. n53=  :end
  56. n54=  if (%value > 21) {
  57. n55=    inc %cards 1 | if (%cards > %noc) { goto endit } 
  58. n56=    if (%c [ $+ [ %cards ] ] = 11) { set %c $+ %cards 1 } | goto %noc    
  59. n57=  } 
  60. n58=  :endit | unset %c1 %c2 %c3 %c4 %c5 %c6 | return %value
  61. n59=}
  62. n60=fbj { %turn = 1 | if ($readini %gamefile pr $+ %turn total >= 17) { d_credit } | if ($readini %gamefile pr $+ %turn total <= 16) { hitme } | halt }
  63. n61=ebj { 
  64. n62=  .timer2000 off | .timer2001 off | writeini %gamefile game players none | writeini %gamefile game nop 0 | writeini %gamefile game takebets no | writeini %gamefile game type off | remini %gamefile sites | notice $readini %gamefile game channel Blackjack table has closed... | writeini %gamefile game channel N/A | %i = 1 
  65. n63=  :clear | remini %gamefile pr $+ [ %i ] | inc %i 1 | if (%i < 11) { goto clear } | unset %i %betplayers %sites %deck | /.load -a $mircdir $+ aliases.ini | halt
  66. n64=}
  67. n65=d_credit {
  68. n66=  %turn = 1 | %nop = $readini %gamefile game nop | %dealer = $readini %gamefile pr1 total | inc %dealer 1
  69. n67=  if (%dealer = blackjack) { msg $readini %gamefile game channel Dealer has BlackJack }
  70. n68=  elseif (%dealer <= 21) { msg $readini %gamefile game channel Dealer pays on %dealer }
  71. n69=  elseif (%dealer = 22) { msg $readini %gamefile game channel Dealer has 21 }
  72. n70=  elseif (%dealer >= 23) { msg $readini %gamefile game channel Dealer has busted }
  73. n71=  :next | inc %turn 1 | if (%turn > $readini %gamefile game nop) { goto end }
  74. n72=  if ($readini %gamefile pr $+ %turn total = blackjack) { goto bj | goto next }
  75. n73=  if ($readini %gamefile pr $+ %turn total = fivecard) { goto credit | goto next }
  76. n74=  if ($readini %gamefile pr $+ %turn total = busted) { goto debit | goto next }  
  77. n75=  if (%dealer < 22) {
  78. n76=    if ($readini %gamefile pr $+ %turn total = %dealer) { %pushed = %pushed $readini %gamefile pr $+ %turn nick }
  79. n77=    if ($readini %gamefile pr $+ %turn total < %dealer) { goto debit }
  80. n78=    if ($readini %gamefile pr $+ %turn total > %dealer) { goto credit } 
  81. n79=  }
  82. n80=  elseif (%dealer = 22) { goto debit }
  83. n81=  elseif (%dealer >= 23) { goto credit } 
  84. n82=  goto next  
  85. n83=  :bj
  86. n84=  %winners = %winners $readini %gamefile pr $+ %turn nick
  87. n85=  goto next
  88. n86=  :credit
  89. n87=  %winners = %winners $readini %gamefile pr $+ %turn nick
  90. n88=  goto next
  91. n89=  :debit
  92. n90=  %losers = %losers $readini %gamefile pr $+ %turn nick
  93. n91=  goto next  
  94. n92=  :end
  95. n93=  if (%winners != $null) { msg $readini %gamefile game channel %winners win! }
  96. n94=  if (%losers != $null) { msg $readini %gamefile game channel %losers lost! }
  97. n95=  if (%pushed != $null) { msg $readini %gamefile game channel %pushed pushed! }
  98. n96=  unset %turn %winners %losers %pushed %credit %dealer %sites | ebj
  99. n97=}
  100. n98=/dbj {
  101. n99=  if ($readini %gamefile game type != BlackJack) { halt } |  if ($readini %gamefile game nop < 2) { ebj }
  102. n100=  writeini %gamefile game takebets no | /shuffle | set %i 1 | set %card 1 | %deck = $readini %gamefile deck deck
  103. n101=  %nop = $readini %gamefile game nop
  104. n102=  :pnc | unset %pickr %pick %suit %hand %rank
  105. n103=  %cpos = $readini %gamefile deck cpos | inc %cpos 1 | writeini %gamefile deck cpos %cpos
  106. n104=  %cleft = $readini %gamefile deck cleft | dec %cleft 1 | writeini %gamefile deck cleft %cleft
  107. n105=  %pick = $asc($mid(%cpos,1,%deck)) - 38 | getface %pick
  108. n106=  if (%card = 2) {
  109. n107=    %hand = $readini %gamefile pr $+ %i vhand | %hand = %hand %pick
  110. n108=    %rank = $readini %gamefile pr $+ %i nhand | %rank = %rank %pickr $+ x 
  111. n109=    rank %rank | writeini %gamefile pr $+ %i total %value | writeini %gamefile pr $+ %i vhand %hand | writeini %gamefile pr $+ %i nhand %rank 
  112. n110=    msg $readini %gamefile game channel $readini %gamefile pr $+ %i nick ╗ hand is $readini %gamefile pr $+ %i vhand ranked at $readini %gamefile pr $+ %i total 
  113. n111=    if (%value = 21) { msg $readini %gamefile game channel $readini %gamefile pr $+ %i nick has BlackJack !!! | writeini %gamefile pr $+ %i total Blackjack } 
  114. n112=  }
  115. n113=  else { writeini %gamefile pr $+ %i vhand %pick | writeini %gamefile pr $+ %i nhand %pickr $+ x }
  116. n114=  inc %i 1 | if (%nop >= %i) { goto pnc } | set %i 1 | inc %card 1 | if (%card <= 2) { goto pnc } 
  117. n115=  if ($readini %gamefile pr1 total = 21) { msg $readini %gamefile game channel Dealer has BlackJack | d_credit }
  118. n116=  unset %rank* %pick* %suit %hand %cleft %i %cpos %nop %card* %noc %value | set %turn 1 | nextplayer
  119. n117=}
  120. n118=/cstats {
  121. n119=  init_scan_vars
  122. n120=  set %ppl 0
  123. n121=  set %scn #$$1
  124. n122=  who #$$1
  125. n123=}
  126. n124=/showclone {
  127. n125=  :end
  128. n126=  report
  129. n127=}
  130. n128=/init_scan_vars {
  131. n129=  set %op 0 | set %opn "" | set %nop 0 | set %nopn ""
  132. n130=  set %appl 0  | set %appln "" | set %vppl 0 | set %vppln ""
  133. n131=  set %ircop 0 | set %ircopn ""
  134. n132=  return 1
  135. n133=}
  136. n134=/clear_chan_vars {
  137. n135=  unset %op | unset %opn | unset %nop  | unset %nopn 
  138. n136=  unset %appl | unset %appln | unset %vppl | unset %vppln 
  139. n137=  unset %ircop  | unset %ircopn | unset %scn
  140. n138=  return 1 
  141. n139=}
  142. n140=/report {
  143. n141=  if %active = $null set %active echo 5 %scn
  144. n142=  %active %scn channel stats
  145. n143=  %active There are %ppl people  
  146. n144=  if (%op >= 6) { %active There are %op ops }
  147. n145=  elseif (%op != 0) { %active There are %op ops } 
  148. n146=  elseif (%op == 0) { %active There are no ops }
  149. n147=  if (%nop >= 6) { %active There are %nop users } 
  150. n148=  elseif (%nop != 0) { %active There are %nop users } 
  151. n149=  elseif (%nop == 0) { %active Only ops in %scn $+ , LETS PARTY!!! }
  152. n150=  if (%vppl != 0) { %active There are %vppl voiced users }
  153. n151=  if (%appl != 0) { %active There are %appl people away | %active The away people are %appln } 
  154. n152=  if (%ircop != 0) { %active There are %ircop IRCops | %active The IRCops are %ircopn } | else { %active There are no IRCops }
  155. n153=  clear_chan_vars
  156. n154=  echo Channel variables cleared...
  157. n155=  .timer 1 2 .load -a $mircdir $+ aliases.ini
  158. n156=}
  159. n157=/f10 {
  160. n158=  /titlebar áááF2 = Close DCC Chats á F3 = Close Sends á F4 = Close Gets á F5 = View Split Servers
  161. n159=  /.timer 1 10 /titlebar á
  162. n160=  /.timer 1 11 /titlebar ááááááááF6 = Load Clone á F7 = Ignore Everything Except Channel á F8 = Remove F7
  163. n161=  /.timer 1 21 /titlebar á
  164. n162=  /.timer 1 22 /titlebar áááááááF9 = Introduction To IRC á F10 = You're Reading It! á F11 = IRC Numeric Codes
  165. n163=  /.timer 1 32 /titlebar -=[ Running The LΦΘcher Script ]=- $time -=[ $day $date ]=-
  166. n164=  /.timer 1 2 /.load -a aliases.ini
  167. n165=}
  168. n166=/cf1 {
  169. n167=  /titlebar -=[ Running The LΦΘcher Script ]=- $time -=[ $day $date ]=-
  170. n168=}
  171.